package com.laputa.service.method.impl;

import com.laputa.model.Ground;
import com.laputa.model.manager.GroundManager;
import com.laputa.service.method.ShowGroundService;
import com.laputa.service.model.ShowGroundData;

public class ShowGroundServiceImpl implements ShowGroundService {
	
	private GroundManager groundManager;
	private ShowGroundData showGroundData;
	
	public void setGroundManager(GroundManager groundManager){
		this.groundManager = groundManager;
	}
	
	public void setShowGroundData(ShowGroundData showGroundData){
		this.showGroundData = showGroundData;
	}
	
	public ShowGroundData getShowGroundData(String groundID) {
		Ground ground = groundManager.getGroundObject(groundID);
		this.showGroundData.setGround(ground);
		return this.showGroundData;
	}

}
